package school.xauat.inscription_sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import school.xauat.inscription_sys.mapper.InscriptionMapper;
import school.xauat.inscription_sys.pojo.Inscription;
import school.xauat.inscription_sys.service.InscriptionService;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zsy
 * @since 2022-04-26
 */
@Service
public class InscriptionServiceImpl extends ServiceImpl<InscriptionMapper, Inscription> implements InscriptionService {

    @Autowired
    InscriptionMapper inscriptionMapper;

    @Override
    public List<Inscription> mget(int wordId) {
        HashMap<String, Object> map = new HashMap<>();
        map.put("word_id", wordId);
        return inscriptionMapper.selectByMap(map);
    }
}
